package com.inory.foodtrace.constants;

public class ContractConstants {
    public static String HelloWorldAbi;

    public static String HelloWorldBinary;

    public static String HelloWorldGmBinary;

    public static String FoodTraceAbi;

    public static String FoodTraceBinary;

//    public static String FoodTraceGmBinary;

//    static {
//        try {
//            HelloWorldAbi = org.apache.commons.io.IOUtils.toString(Thread.currentThread().getContextClassLoader().getResource("abi/HelloWorld.abi"));
//            HelloWorldBinary = org.apache.commons.io.IOUtils.toString(Thread.currentThread().getContextClassLoader().getResource("bin/ecc/HelloWorld.bin"));
//            HelloWorldGmBinary = org.apache.commons.io.IOUtils.toString(Thread.currentThread().getContextClassLoader().getResource("bin/sm/HelloWorld.bin"));
//        } catch (Exception e) {
//            throw new RuntimeException(e);
//        }
//    }

    static {
        try {
            FoodTraceAbi = org.apache.commons.io.IOUtils.toString(Thread.currentThread().getContextClassLoader().getResource("abi/FoodTrace.abi"));
            FoodTraceBinary = org.apache.commons.io.IOUtils.toString(Thread.currentThread().getContextClassLoader().getResource("bin/ecc/FoodTrace.bin"));
//            FoodTraceGmBinary = org.apache.commons.io.IOUtils.toString(Thread.currentThread().getContextClassLoader().getResource("bin/sm/FoodTrace.bin"));
        } catch (Exception e) {
            throw new RuntimeException(e);
        }
    }
}
